//
//  oldMyAddressesListTableViewCell.m
//  laonianbang
//
//  Created by 勇拓 李 on 18/3/12.
//  Copyright © 2018年 zaiyou. All rights reserved.
//

#import "oldMyAddressesListTableViewCell.h"

@interface oldMyAddressesListTableViewCell()
@property (weak, nonatomic) IBOutlet UILabel *label_street;
@property (weak, nonatomic) IBOutlet UILabel *label_detail;
@property (weak, nonatomic) IBOutlet UIButton *btn_edit;

@end

@implementation oldMyAddressesListTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    [_btn_edit addTarget:self action:@selector(btn_edit_tapped:) forControlEvents:UIControlEventTouchDown];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setAddressInfo:(oldAddressInfo *)addressInfo
{
    _addressInfo = addressInfo;
    _label_detail.text = addressInfo.doorNo;
    _label_street.text = addressInfo.address;
}

- (void)btn_edit_tapped:(id)sender
{
    [self.delegate cellEditAddress:_index];
}

@end
